﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Candidate_Profile.aspx.cs"
    Inherits="CTEA_INDIA.Candidate_Profile" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/MenuList.ascx" TagName="Menu" TagPrefix="m1" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>My Profile</title>
    <link href="CSS/MyStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
        <uc:header runat="server" ID="aa" />
    </div>
   
    <div class="MainDiv">
        <center>
            <div>
                <table width="900px" border="0">
                    <tr>
                        <td valign="top" align="center">
                            <table width="100%" border="0">
                                <tr>
                                    <td valign="top" width="200px">
                                        <m1:Menu runat="server" ID="menu" />
                                    </td>
                                    <td valign="top">
                                        <table>
                                            <tr>
                                                <td class="myaccount">
                                                    <asp:Label ID="Label1" runat="server" Text="My Profile" CssClass="headingpage Label "></asp:Label>&nbsp;
                                                    <div style="float: right; padding-right: 20px">
                                                        <span runat="server" id="spnUsername" visible="false" class="lstlogin"></span>|
                                                        <span runat="server" id="spnLastUsedDate" visible="false" class="lstlogin"></span>
                                                    </div>
                                                    <div class="imgstrip">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="350px">
                                                    <span id="updatemessage" runat="server" class="spanMsgs " style="display: none">
                                                    </span>
                                                    <div style="float: right; color: Gray; font-size: 13px; padding-right: 20px">
                                                        <asp:Button ID="btnEdit" runat="server" Text="EDIT " CausesValidation="false"  CssClass="btnsubmit" OnClick="btnEdit_Click" />
                                                        <asp:Button ID="btnCancel" runat="server" Text="CANCEL" CssClass="btnsubmit" CausesValidation="false"
                                                            OnClick="btnCancel_Click" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td class="Label " align="left" width="200px">
                                                                Emaild ID
                                                            </td>
                                                            <td align="left">
                                                                <asp:Label ID="lblEmailID" CssClass="Label " runat="server" Text="Emaild"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <fieldset style="background-color: #191717">
                                                                    <legend class="Label" style="font-weight: bold">Personal Details</legend>
                                                                    <table cellpadding="3" cellspacing="3" width="550px">
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Name
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtName" runat="server" MaxLength="50"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Display="None"
                                                                                    SetFocusOnError="true" ControlToValidate="txtName" ErrorMessage="Please, Enter Name"
                                                                                    CssClass="validators"></asp:RequiredFieldValidator>
                                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" TargetControlID="RequiredFieldValidator4">
                                                                                </asp:ValidatorCalloutExtender>
                                                                            </td>
                                                                            <td rowspan="3">
                                                                                <asp:Image ID="ImgCandidate" runat="server" ImageUrl="~/Images/Chrysanthemum.jpg"
                                                                                    Height="100px" widht="100px" BorderColor="Orange" BorderWidth="1px" />
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Gender
                                                                            </td>
                                                                            <td colspan="2" align="left">
                                                                                <asp:RadioButtonList ID="rbtGender" runat="server" CssClass="Label " RepeatDirection="Horizontal">
                                                                                    <asp:ListItem Text="Male" Value="Male" Selected="True">
                                                                                    </asp:ListItem>
                                                                                    <asp:ListItem Text="Female" Value="Female">
                                                                                    </asp:ListItem>
                                                                                </asp:RadioButtonList>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Date Of Birth
                                                                            </td>
                                                                            <td colspan="2" align="left">
                                                                                <asp:TextBox ID="txtDOB" runat="server"></asp:TextBox>
                                                                                <%-- <asp:TextBoxWatermarkExtender ID="txtDOB_TextBoxWatermarkExtender" 
                        runat="server" TargetControlID="txtDOB" WatermarkText="MM/DD/YYYY" >--%>
                                                                                <%-- </asp:TextBoxWatermarkExtender>--%>
                                                                                <asp:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="txtDOB_MaskedEditExtender"
                                                                                    ControlToValidate="txtDOB" IsValidEmpty="False" EmptyValueMessage="Date is required"
                                                                                    InvalidValueMessage="Date is invalid" Display="None" />
                                                                                <asp:MaskedEditExtender ID="txtDOB_MaskedEditExtender" runat="server" TargetControlID="txtDOB"
                                                                                    Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                                                                                    MaskType="Date" OnInvalidCssClass="MaskedEditError" PromptCharacter="_" AcceptNegative="Left"
                                                                                    DisplayMoney="Left" ErrorTooltipEnabled="True" InputDirection="LeftToRight " />
                                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="MaskedEditValidator1">
                                                                                </asp:ValidatorCalloutExtender>
                                                                                <asp:CustomValidator ID="CustomValidator1" ControlToValidate="txtDOB" OnServerValidate="IsNotFutureDate"
                                                                                    runat="server" ErrorMessage="The data cannot be a future date." Display="None"></asp:CustomValidator>
                                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender17" runat="server" TargetControlID="CustomValidator1">
                                                                                </asp:ValidatorCalloutExtender>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Profile Photo
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:FileUpload ID="ftpProfpic" runat="server" CssClass="Label " />
                                                                                <%--   <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ErrorMessage="Only jpg,jpeg,gif,bmp,png files are allowed!"
                                                    ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.jpg|.jpeg|.gif|.bmp|.png|.JPG|.PNG)$"
                                                    ControlToValidate="ftpProfpic" Display ="None" ></asp:RegularExpressionValidator> 
                                                     <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender12" runat="server" TargetControlID="RegularExpressionValidator7">
                                        </asp:ValidatorCalloutExtender>--%>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" valign="top" align="left">
                                                                                Address*
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtAddress" runat="server" Height="56px" TextMode="MultiLine"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
                                                                                    ControlToValidate="txtAddress" ErrorMessage="Please, Enter Address" CssClass="validators"></asp:RequiredFieldValidator>
                                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="RequiredFieldValidator1">
                                                                                </asp:ValidatorCalloutExtender>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Location
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtLocation" runat="server" MaxLength="20"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" width="170px" align="left">
                                                                                Mobile Number
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtPers_MobileNo" runat="server" MaxLength="10" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" SetFocusOnError="true"
                                                                                    ErrorMessage="Invalid Number" Display="None" ControlToValidate="txtPers_MobileNo"
                                                                                    ValidationExpression="^9[0-9]{9}$" CssClass="validators"></asp:RegularExpressionValidator>
                                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" TargetControlID="RegularExpressionValidator4" />
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Education
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtEducation" runat="server"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="None"
                                                                                    ControlToValidate="txtEducation" ErrorMessage="Please, Enter Education" CssClass="validators"></asp:RequiredFieldValidator>
                                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" TargetControlID="RequiredFieldValidator4">
                                                                                </asp:ValidatorCalloutExtender>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Qualification
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtQualification" runat="server"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Apply for
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:DropDownList ID="ddlApplyFor" runat="server" Width="170px">
                                                                                    <asp:ListItem Selected="True" Text="Actor" Value="Actor">
                                                                                    </asp:ListItem>
                                                                                    <asp:ListItem Text="Dancer" Value="Dancer"></asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </fieldset>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <fieldset style="background-color: #191717">
                                                                    <legend class="Label" style="font-weight: bold">Guardian Details</legend>
                                                                    <table>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Name
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtGuardian_Name" runat="server" MaxLength="50"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Display="None"
                                                                                    ControlToValidate="txtGuardian_Name" ErrorMessage="Please, Enter Name" CssClass="validators"></asp:RequiredFieldValidator>
                                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" TargetControlID="RequiredFieldValidator5">
                                                                                </asp:ValidatorCalloutExtender>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Location
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtGuardian_Locaton" runat="server" MaxLength="50"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" Display="None"
                                                                                    ControlToValidate="txtLocation" ErrorMessage="Please, Enter Location" CssClass="validators"></asp:RequiredFieldValidator>
                                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="RequiredFieldValidator7">
                                                                                </asp:ValidatorCalloutExtender>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" width="170px" align="left">
                                                                                Contact Number
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtGuardian_Cno" runat="server" MaxLength="15"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" width="170px">
                                                                                Occupation
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtOccup" runat="server"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="Label" align="left">
                                                                                Relationship to Candidate
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtRelationshp" runat="server"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </fieldset>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" colspan="2">
                                                                <asp:Button ID="btnRegister" runat="server" Height="30px" Text="Update" Enabled="true"
                                                                    OnClick="btnRegister_Click" />
                                                            </td>
                                                            <asp:TextBox ID="txthiddenphotoname" runat="server" Visible="false"></asp:TextBox>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </center>
    </div>
    </form>
</body>
</html>
